<html>
   <script>
       document.writeln("<h1>Heading</h1>");
	   var cars=3;
	   var trucks=8;
	   var sum=cars+trucks;
	   var dif=trucks-cars;
	   var mul=cars*trucks;
	   document.write("<p>"+sum+"</p>");
	   document.write("<p>"+dif+"</p>");
	   document.write("<p>"+mul+"</p>");
	   document.write("<p>"+(trucks/cars)+"</p>");
	   var DateToday = new Date();
	   document.write(DateToday.toLocaleString()+"<hr/>");
	   
	   var date=new Date();
	   var arrDayNames =new Array(7);
	   arrDayNames[0]="Sunday";
	   arrDayNames[1]="Monday";
	   arrDayNames[2]="Tuesday";
	   arrDayNames[3]="Wednesday";
	   arrDayNames[4]="Thursday";
	   arrDayNames[5]="Friday";
	   arrDayNames[6]="Saturday";
	   var strToday = arrDayNames[date.getDay()];
	   document.write(date.getFullYear());
	   
   </script>
</html>